<?php 
namespace backend\controllers;
use Yii;
use backend\controllers\CommontController;
use backend\models\user\JobMember;
use backend\models\user\JobUser;
use yii\db\query;

class UserController extends CommontController
{	
    public function actionList()
    {   
        $user_db = JobUser::find()->All();
        //print_r($user_db);exit;
        return $this->render('list',['info'=>$user_db]);
    }
    public function actionMember()
    {
        $id = Yii::$app->request->get('id');
        $member_db = JobMember::find()->where(['user_id'=>$id])->One();
        return $this->render('member',['info'=>$member_db]);
    }
    public function actionDefault()
    {
        //$id = Yii::$app->request->get('id');
        //$member_db = JobMember::find()->where(['user_id'=>$id])->One();
        //print_r($member_db);exit;
    }



}


 ?>